//
//  LeoMsg.h
//  leo
//
//  Created by 常艳 on 15/9/13.
//  Copyright (c) 2015年 mdx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"
#import "GlobalConfig.h"
typedef NS_ENUM(NSUInteger, ToastShowPosition) {
    TOAST_SHOW_TOP,
    TOAST_SHOW_MID,
    TOAST_SHOW_END
};
@interface LeoMsg : NSObject
+(UIActivityIndicatorView *)showLoadingView;
+(void)showMsg:(NSString *)msg;
+(void)showToastMsg:(NSString *)msg parentView:(UIView *)parentView showPosition:(enum ToastShowPosition)position hideAfterDelay:(int)second;

+(int)convertToInt:(NSString*)strtemp;//判断中英混合的的字符串长度;
+(BOOL)isTooLong:(NSString *)testString ChnLength:(int)ChnLength EngLength:(int)EngLength tipsString:(NSString*) tipsString onlyUnderline:(BOOL)onlyUnderline
;//判断输入的字符串是否合法
+(BOOL)ContactPhoneFormatIsWrong:(NSString *)testString;//判断联系人电话是否正确
@end
